package com.lbj1.aopannotation;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;


@Component
@Aspect
@Order(1)  /*设置优先级，值越小优先级越高*/
public class PersonProxy {

    @Before(value = "execution(* com.lbj1.aopannotation.User.add(..))")
    public void afterReturning(){
        System.out.println("Person Before.......");
    }

}
